<?php
/**
 * @name /lib/public/HTML.php
 * @author Michael Foss <mfoss@clarionsafety.com>
 * @version 2007.07.02
 * 
 * Library for basic (but rarely used) HTML functionality.
 */

ini_set('short_open_tag', 'On');

/**
 * HTML class.
 *
 */
class HTML {
  /**
   * Prints the favorite icon in a link tag.
   *
   * @param URL $loc
   */
  function FavIcon($loc="") {
  ?><link rel="Shortcut Icon" href="<?=$loc ?>">
<?
  }

  /**
   * Adds a CSS file via a link tag.
   *
   * @param URL $cssFile
   */
  function CSS($cssFile) {
    ?><link rel="StyleSheet" type="text/css" href="<?=$cssFile ?>">
<?
  }

  /**
   * Adds a JS file via a script tag.
   *
   * @param URL $jsFile
   */
  function JS($jsFile) {
    ?><script type="text/javascript" src="<?=$jsFile ?>"></script>
<?
  }
}